<template>
  <div class="home_top dis-o">
    <div class="user_info dis">
      <p class="info_img"><img src="@/assets/img/profile.jpg" alt=""></p>
      <div class="title">
        <p class="fs_24">基础设施数字化系统! 你好</p>
        <p class="fs_14">欢迎来到城市生命线安全道桥隧管理平台</p>
      </div>
    </div>
    <div class="count_box">
      <p class="name">基础数据表 <span class="fs_12">截止2024-06-28 13:58:01</span></p>
      <ul class="dis-o-between">
        <li v-for="(item, index) in navData" :key="index">
          <p class="one_hang fs_14">{{ item.name }}</p>
          <p class="fs_24">{{ item.value }}</p>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  name: 'moduleOne',
  data() {
    return {
      navData: [
        { name: '总计设施', value: '17' },
        { name: '今日上报案卷', value: '0' },
        { name: '今日关闭案卷', value: '0' },
        { name: '未关闭案卷', value: '137' },
        { name: '未关闭风险点', value: '0' },
        { name: '今日巡查任务', value: '0/0' },

      ]
    };
  },
  props: {},

  components: {},

  created() { },

  mounted() { },

  beforeDestroy() { },

  methods: {},

  computed: {},

  watch: {},

  directives: {},

  filters: {}
};
</script>

<style scoped lang="scss">
.home_top {
  width: 100%;
  height: 200px;
  background: #fff;

  .user_info {
    height: 100%;
    width: 370px;
    border-right: 2px solid #ebedf0;
    box-sizing: border-box;
    padding: 30px;

    .info_img {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      margin-right: 20px;
      // border: 2px solid #ebedf0;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
      }

    }

    .title {
      width: calc(100% - 90px);

      .fs_14 {
        margin-top: 10px;
      }
    }

  }

  .count_box {
    height: 100%;
    width: calc(100% - 370px);
    box-sizing: border-box;
    padding: 30px;

    .name {
      color: #444;

      span {
        color: #999;
        margin-left: 10px;
      }
    }

    ul {
      margin-top: 20px;

      li {
        width: 16%;
        box-sizing: border-box;
        background: #f7f8fa;
        padding: 16px;
        transition: transform 500ms ease-in-out;
        cursor: pointer;

        .fs_24 {
          color: #0066ff;
          margin-top: 30px;
        }
      }

      li:hover {
        transform: scale(1.1);
        box-shadow: inset 0 0 10px var(--theme-color);
      }
    }
  }
}
</style>
